package com.letu.elasticsearch.model;

import lombok.Data;

import java.util.List;

/**
 * 分页结果
 */
@Data
public class PageResult<T> {
    private Long total; //总记录数
    private List<T> records; //当前页结果列表

    public PageResult() {
    }
    public PageResult(Long total, List<T> records) {
        this.total = total;
        this.records = records;
    }

}